package GUI;


import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
 *This class creates instance of ReportPanelGUI 	
 * to display when needed 
 * @author Elad
 *
 */
public class ReportPanelGUI extends JPanel {

	private static final long serialVersionUID = 1L;
	private JButton btncreateActivityReport;
	private JButton btnCreatePerformanceReport_1;
	private JButton btnDisplayReport_1;
	private JTextField startdateListener;
	private JTextField endDateListener;
	
	/**
	 *the constructor that  initialize the ReportPanelGUI
	 */
	public ReportPanelGUI() {
		setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 11));
		setLayout(null);
		
		JDesktopPane desktopPane = new JDesktopPane();
		desktopPane.setBounds(278, 16, 1, 1);
		add(desktopPane);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(284, 15, 2, 2);
		add(scrollPane);
		
		JLabel lblNewJgoodiesTitle = new JLabel("report manu");
		lblNewJgoodiesTitle.setForeground(Color.BLUE);
		lblNewJgoodiesTitle.setBackground(SystemColor.textHighlight);
		lblNewJgoodiesTitle.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 20));
		lblNewJgoodiesTitle.setBounds(174, -13, 182, 59);
        add(lblNewJgoodiesTitle);
		
		JLabel lblNewLabel = new JLabel("New label");
		lblNewLabel.setBounds(289, 23, 46, -6);
		add(lblNewLabel);
		
		btncreateActivityReport = new JButton("create Activity Report");
		btncreateActivityReport.setFont(new Font("Arial", Font.BOLD, 12));
		btncreateActivityReport.setForeground(Color.BLACK);
		btncreateActivityReport.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btncreateActivityReport.setBackground(new Color(75, 0, 130));
		btncreateActivityReport.setBounds(151, 146, 219, 50);
		add(btncreateActivityReport);
		
		JLabel lblNewLabel_1 = new JLabel("start date");
		lblNewLabel_1.setFont(new Font("Arial", Font.BOLD, 14));
		lblNewLabel_1.setBounds(94, 48, 67, 14);
		add(lblNewLabel_1);
		
		startdateListener = new JTextField();
		startdateListener.setBounds(171, 40, 135, 32);
		add(startdateListener);
		startdateListener.setColumns(10);
		
		JLabel lblEndDate = new JLabel("end date");
		lblEndDate.setFont(new Font("Arial", Font.BOLD, 14));
		lblEndDate.setBounds(94, 91, 67, 14);
		add(lblEndDate);
		
		endDateListener = new JTextField();
		endDateListener.setColumns(10);
		endDateListener.setBounds(171, 83, 135, 32);
		add(endDateListener);
		
		JButton button = new JButton("create Tardiness Report");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		button.setForeground(Color.BLACK);
		button.setFont(new Font("Arial", Font.BOLD, 12));
		button.setBackground(new Color(75, 0, 130));
		button.setBounds(151, 207, 219, 50);
		add(button);
		
		JButton btnCreatePerformanceReport_1 = new JButton("create Performance Report");
		btnCreatePerformanceReport_1.setForeground(Color.BLACK);
		btnCreatePerformanceReport_1.setFont(new Font("Arial", Font.BOLD, 12));
		btnCreatePerformanceReport_1.setBackground(new Color(75, 0, 130));
		btnCreatePerformanceReport_1.setBounds(151, 268, 219, 50);
		add(btnCreatePerformanceReport_1);
		
		JButton btnDisplayReport_1 = new JButton("display Report");
		btnDisplayReport_1.setForeground(Color.BLACK);
		btnDisplayReport_1.setFont(new Font("Arial", Font.BOLD, 12));
		btnDisplayReport_1.setBackground(new Color(75, 0, 130));
		btnDisplayReport_1.setBounds(151, 329, 219, 50);
		add(btnDisplayReport_1);
		
		JButton button_1 = new JButton("cancel");
		button_1.setFont(new Font("Tahoma", Font.BOLD, 13));
		button_1.setBounds(10, 436, 124, 33);
		add(button_1);
	}

	
	/***
	 * 
	 * @return JTextField with the start date
	 */
	public JTextField getStartdateListener() {
		return startdateListener;
	}
	
	/**
	 * 
	 * @param startdateListener to set the start date
	 */
	public void setStartdateListener(JTextField startdateListener) {
		this.startdateListener = startdateListener;
	}
	/**
	 * 
	 * @return JTextField with the end date
	 */
	public JTextField getEndDateListener() {
		return endDateListener;
	}
	/**
	 * 
	 * @param endDateListener to set the end date
	 */
	public void setEndDateListener(JTextField endDateListener) {
		this.endDateListener = endDateListener;
	}

	/**
	 * 
	 * @return the tardiness report button
	 */
	public JButton getBtncreateTardinessReport() {
		return btncreateActivityReport;
	}

	/**
	 * 
	 * @param btncreateTardinessReport to set the tardiness report button
	 */
	public void setBtncreateTardinessReport(JButton btncreateTardinessReport) {
		this.btncreateActivityReport = btncreateTardinessReport;
	}


	/**
	 * 
	 * @return the activity report button
	 */
	public JButton getBtncreateActivityReport() {
		return btncreateActivityReport;
	}


		/**
		 * 
		 * @param btncreateActivityReport to set the activity report button
		 */
	public void setBtncreateActivityReport(JButton btncreateActivityReport) {
		this.btncreateActivityReport = btncreateActivityReport;
	}


	/**
	 * 
	 * @return the performance report button
	 */
	public JButton getBtnCreatePerformanceReport_1() {
		return btnCreatePerformanceReport_1;
	}


	/**
	 * 
	 * @param btnCreatePerformanceReport_1 to set the performance report button 
	 */
	public void setBtnCreatePerformanceReport_1(JButton btnCreatePerformanceReport_1) {
		this.btnCreatePerformanceReport_1 = btnCreatePerformanceReport_1;
	}


	/**
	 * 
	 * @return the display report button
	 */
	public JButton getBtnDisplayReport_1() {
		return btnDisplayReport_1;
	}

	/**
	 * 
	 * @param btnDisplayReport_1 to set the display report button 
	 */
	public void setBtnDisplayReport_1(JButton btnDisplayReport_1) {
		this.btnDisplayReport_1 = btnDisplayReport_1;
	}
}
